<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>	
<h3><?php __('Actions'); ?></h3>
<ul>
	<?php if(isset($ogloszenia)){?>
	<li><?php echo $this->Html->link(__('Edytuj ofertę', true), array('action' => 'edit', $ogloszenia['Ogloszenia']['id'])); ?> </li>
	<li><?php echo $this->Html->link(__('Usuń ofertę', true), array('action' => 'delete', $ogloszenia['Ogloszenia']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ogloszenia['Ogloszenia']['id'])); ?> </li>
	<?php }?>
	<li><?php echo $this->Html->link(__('+ Dodaj ofertę', true), array('action' => 'dodaj')); ?></li>
	<li><?php echo $this->Html->link(__('Lista Użytkowników', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
	<li><?php echo $this->Html->link(__('+ Dodaj użytkownika', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	<li><?php echo $this->Html->link(__('Lista kategorii', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
	<li><?php echo $this->Html->link(__('Nowa kategoria', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>

</ul>
<?php }?>